home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ISO-8859 text
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 63 61 69 73 2e |Path: ne|ws.cais.|
|00000010| 63 6f 6d 21 6e 65 77 73 | 0a 46 72 6f 6d 3a 20 43 |com!news|.From: C|
|00000020| 68 72 69 73 20 52 65 69 | 73 65 72 20 3c 63 72 65 |hris Rei|ser <cre|
|00000030| 69 73 65 72 40 69 64 73 | 32 2e 69 64 73 6f 6e 6c |iser@ids|2.idsonl|
|00000040| 69 6e 65 2e 63 6f 6d 3e | 0a 4e 65 77 73 67 72 6f |ine.com>|.Newsgro|
|00000050| 75 70 73 3a 20 63 6f 6d | 70 2e 6c 61 6e 67 2e 63 |ups: com|p.lang.c|
|00000060| 2b 2b 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |++.Subje|ct: Re: |
|00000070| 72 65 61 64 69 6e 67 20 | 74 65 78 74 66 69 6c 65 |reading |textfile|
|00000080| 73 2e 2e 2e 0a 44 61 74 | 65 3a 20 53 61 74 2c 20 |s....Dat|e: Sat, |
|00000090| 31 33 20 41 70 72 20 31 | 39 39 36 20 31 35 3a 31 |13 Apr 1|996 15:1|
|000000a0| 33 3a 32 35 20 2d 30 34 | 30 30 0a 4f 72 67 61 6e |3:25 -04|00.Organ|
|000000b0| 69 7a 61 74 69 6f 6e 3a | 20 43 61 70 69 74 61 6c |ization:| Capital|
|000000c0| 20 41 72 65 61 20 49 6e | 74 65 72 6e 65 74 20 53 | Area In|ternet S|
|000000d0| 65 72 76 69 63 65 20 69 | 6e 66 6f 40 63 61 69 73 |ervice i|nfo@cais|
|000000e0| 2e 63 6f 6d 20 37 30 33 | 2d 34 34 38 2d 34 34 37 |.com 703|-448-447|
|000000f0| 30 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 33 |0.Messag|e-ID: <3|
|00000100| 31 36 46 46 43 44 35 2e | 36 30 38 37 40 69 64 73 |16FFCD5.|6087@ids|
|00000110| 32 2e 69 64 73 6f 6e 6c | 69 6e 65 2e 63 6f 6d 3e |2.idsonl|ine.com>|
|00000120| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 34 6b |.Referen|ces: <4k|
|00000130| 37 70 36 70 24 69 37 73 | 40 6e 65 74 6e 65 77 73 |7p6p$i7s|@netnews|
|00000140| 2e 75 70 65 6e 6e 2e 65 | 64 75 3e 0a 4e 4e 54 50 |.upenn.e|du>.NNTP|
|00000150| 2d 50 6f 73 74 69 6e 67 | 2d 48 6f 73 74 3a 20 69 |-Posting|-Host: i|
|00000160| 70 31 39 37 2e 69 64 73 | 6f 6e 6c 69 6e 65 2e 63 |p197.ids|online.c|
|00000170| 6f 6d 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |om.Mime-|Version:|
|00000180| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|00000190| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|000001a0| 68 61 72 73 65 74 3d 69 | 73 6f 2d 38 38 35 39 2d |harset=i|so-8859-|
|000001b0| 31 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |1.Conten|t-Transf|
|000001c0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 38 62 69 |er-Encod|ing: 8bi|
|000001d0| 74 0a 58 2d 4d 61 69 6c | 65 72 3a 20 4d 6f 7a 69 |t.X-Mail|er: Mozi|
|000001e0| 6c 6c 61 20 32 2e 30 31 | 47 6f 6c 64 20 28 57 69 |lla 2.01|Gold (Wi|
|000001f0| 6e 39 35 3b 20 49 29 0a | 54 6f 3a 20 53 6f 6e 6e |n95; I).|To: Sonn|
|00000200| 79 20 3c 73 6f 6e 40 62 | 6c 75 65 2e 73 65 61 73 |y <son@b|lue.seas|
|00000210| 2e 75 70 65 6e 6e 2e 65 | 64 75 3e 0a 0a 53 6f 6e |.upenn.e|du>..Son|
|00000220| 6e 79 20 77 72 6f 74 65 | 3a 0a 3e 20 0a 3e 20 48 |ny wrote|:.> .> H|
|00000230| 6f 77 20 64 6f 20 49 20 | 72 65 61 64 20 69 6e 20 |ow do I |read in |
|00000240| 61 20 74 65 78 74 20 66 | 69 6c 65 20 6f 6e 65 20 |a text f|ile one |
|00000250| 6c 69 6e 65 20 61 74 20 | 61 20 74 69 6d 65 3f 0a |line at |a time?.|
|00000260| 3e 20 0a 3e 20 69 66 73 | 74 72 65 61 6d 20 69 6e |> .> ifs|tream in|
|00000270| 46 69 6c 65 28 66 69 6c | 65 2c 20 69 6f 73 3a 3a |File(fil|e, ios::|
|00000280| 69 6e 29 3b 0a 3e 20 0a | 3e 20 69 6e 46 69 6c 65 |in);.> .|> inFile|
|00000290| 2e 67 65 74 28 29 20 72 | 65 61 64 73 20 69 6e 20 |.get() r|eads in |
|000002a0| 6f 6e 65 20 63 68 61 72 | 61 63 74 65 72 20 61 74 |one char|acter at|
|000002b0| 20 61 20 74 69 6d 65 2c | 62 75 74 20 68 6f 77 20 | a time,|but how |
|000002c0| 64 6f 20 69 20 72 65 61 | 64 20 61 20 77 68 6f 6c |do i rea|d a whol|
|000002d0| 65 20 6c 69 6e 65 3f 0a | 3e 20 0a 3e 20 74 68 61 |e line?.|> .> tha|
|000002e0| 6e 6b 73 20 66 6f 72 20 | 61 6e 79 20 68 65 6c 70 |nks for |any help|
|000002f0| 2c 0a 3e 20 53 6f 6e 6e | 79 0a 3e 20 0a 3e 20 2d |,.> Sonn|y.> .> -|
|00000300| 2d 0a 0a 75 73 65 20 69 | 6e 46 69 6c 65 2e 67 65 |-..use i|nFile.ge|
|00000310| 74 6c 69 6e 65 28 20 29 | 20 74 6f 20 67 65 74 20 |tline( )| to get |
|00000320| 61 20 77 68 6f 6c 65 20 | 6c 69 6e 65 2e 0a 0a 66 |a whole |line...f|
|00000330| 75 6e 63 74 69 6f 6e 20 | 64 65 63 6c 61 72 61 74 |unction |declarat|
|00000340| 69 6f 6e 3a 20 69 66 73 | 74 72 65 61 6d 26 20 67 |ion: ifs|tream& g|
|00000350| 65 74 6c 69 6e 65 28 20 | 63 68 61 72 2a 20 6c 69 |etline( |char* li|
|00000360| 6e 65 2c 20 69 6e 74 20 | 6e 75 6d 5f 63 68 61 72 |ne, int |num_char|
|00000370| 73 2c 20 63 68 61 72 20 | 64 65 6c 69 6d 69 74 20 |s, char |delimit |
|00000380| 3d 20 27 5c 6e 27 a0 29 | 3b 0a 0a 65 78 61 6d 70 |= '\n'.)|;..examp|
|00000390| 6c 65 3a 0a 09 63 68 61 | 72 20 6c 69 6e 65 5b 38 |le:..cha|r line[8|
|000003a0| 31 5d 3b 0a 09 69 6e 74 | 20 20 6e 75 6d 5f 63 68 |1];..int| num_ch|
|000003b0| 61 72 73 20 3d 20 38 30 | 3b 0a 09 69 6e 46 69 6c |ars = 80|;..inFil|
|000003c0| 65 2e 67 65 74 6c 69 6e | 65 28 20 6c 69 6e 65 2c |e.getlin|e( line,|
|000003d0| 20 6e 75 6d 5f 63 68 61 | 72 73 20 29 3b 0a 0a 49 | num_cha|rs );..I|
|000003e0| 74 20 74 61 63 6b 73 20 | 6f 6e 20 61 20 27 5c 30 |t tacks |on a '\0|
|000003f0| 27 20 61 74 20 74 68 65 | 20 65 6e 64 20 66 6f 72 |' at the| end for|
|00000400| 20 79 6f 75 2e 20 20 54 | 68 69 73 20 65 78 61 6d | you. T|his exam|
|00000410| 70 6c 65 20 61 73 73 75 | 6d 65 73 20 74 68 61 74 |ple assu|mes that|
|00000420| 20 79 6f 75 72 20 74 65 | 78 74 20 69 73 20 0a 6e | your te|xt is .n|
|00000430| 6f 20 6d 6f 72 65 20 74 | 68 61 6e 20 38 30 20 63 |o more t|han 80 c|
|00000440| 68 61 72 61 63 74 65 72 | 73 20 6c 6f 6e 67 2e 20 |haracter|s long. |
|00000450| 20 50 72 65 74 74 79 20 | 73 74 61 6e 64 61 72 64 | Pretty |standard|
|00000460| 20 61 66 74 65 72 20 61 | 6c 6c 2e 20 20 43 68 61 | after a|ll. Cha|
|00000470| 6e 67 65 20 74 68 61 74 | 20 0a 61 73 20 6e 65 65 |nge that| .as nee|
|00000480| 64 65 64 2e 0a | |ded.. | |
+--------+-------------------------+-------------------------+--------+--------+